def myCacultr(a,b,c):
    try:
        a,c = float(a),float(c)
        if b == "+":
            result = "{} {} {} = {}".format(a, b, c, a + c)
            print(result)
        elif b == "-":
            result = "{} {} {} = {}".format(a, b, c, a - c)
            print(result)
        elif b == "*":
            result = "{} {} {} = {}".format(a, b, c, a * c)
            print(result)
        elif b == "/":
            result = "{} {} {} = {}".format(a, b, c, a / c)
            print(result)
    except ZeroDivisionError:
        print("Cannot divide by zero!")
    except Exception as e:
        print("Please input number!(0~9 or float)")
    finally:
        return

while True:
    num1 = input("Please input first num[quit]：")
    if num1 == "quit":
        print("Bye Bye")
        break
    opt = input("Please input need compute(+ - * /)[quit]：")
    if opt == "quit":
        print("Bye Bye")
        break
    elif opt not in ["+", "-", "*", "/"]:
        print("Please input one compute,exp +")
        continue
    num2 = input("Please input second num[quit]: ")
    if num2 == "quit":
        print("Bye Bye")
        break

    myCacultr(num1,opt,num2)